package com.itheima.zixi2.ZuoYe;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

public class ZuoYe1 {
    public static void main(String[] args) {
        System.out.println(LocalDateTime.now());
        System.out.println(ChangeTime.ttos(LocalDateTime.now()));
        System.out.println(LocalDate.of(2020, 10, 10));
        System.out.println(ChangeTime.ttos(LocalDate.of(2020, 10, 10)));
        System.out.println(ChangeTime.ttos(LocalTime.now()));
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd/");
        LocalDate time = LocalDate.parse("2020/11/11/", dtf);
        System.out.println(time);
        System.out.println(ChangeTime.ttos(time));
        System.out.println(ChangeTime.stot2("2020年11月11日"));


    }
}
